package com.itheima.HomeWork.homework04;

import java.io.FileInputStream;
import java.io.FileReader;

public class Demo {
    public static void main(String[] args) {
        try (FileReader fr = new FileReader("E:\\img1\\a.txt")) {
            int lne;
            char[] chr = new char[1024];
            while ((lne = fr.read(chr)) != -1) {
                System.out.println(new String(chr, 0, lne));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
